package hu.test.atacama;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceInfo implements Parcelable {

	private String deviceType;

	private String objectKey;

	private String ownerName;

	private String licensePlate;

	private String lastSeen;

	private String latitude;

	private String longitude;

	private String pictureURL;

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getObjectKey() {
		return objectKey;
	}

	public void setObjectKey(String objectKey) {
		this.objectKey = objectKey;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}

	public String getLastSeen() {
		return lastSeen;
	}

	public void setLastSeen(String lastSeen) {
		this.lastSeen = lastSeen;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getPictureURL() {
		return pictureURL;
	}

	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}

	protected DeviceInfo(Parcel in) {
		deviceType = in.readString();
		objectKey = in.readString();
		ownerName = in.readString();
		licensePlate = in.readString();
		lastSeen = in.readString();
		latitude = in.readString();
		longitude = in.readString();
		pictureURL = in.readString();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(deviceType);
		dest.writeString(objectKey);
		dest.writeString(ownerName);
		dest.writeString(licensePlate);
		dest.writeString(lastSeen);
		dest.writeString(latitude);
		dest.writeString(longitude);
		dest.writeString(pictureURL);
	}

	public static final Parcelable.Creator<DeviceInfo> CREATOR = new Parcelable.Creator<DeviceInfo>() {
		public DeviceInfo createFromParcel(Parcel in) {
			return new DeviceInfo(in);
		}

		public DeviceInfo[] newArray(int size) {
			return new DeviceInfo[size];
		}
	};
}